Arrow keys / Click to navigate

Module 5: Connecting Networks

Advanced Architecting on AWS

TGW Advanced โ€ข Peering โ€ข PrivateLink โ€ข Shared VPCs

๐ŸŽฏ Module Objectives

๐Ÿ”€ Transit Gateway Advanced Features

FeatureDescriptionUse Case
TGW PeeringConnect TGWs across Regions (inter-region) or accountsMulti-region hub-and-spoke
MulticastOne-to-many traffic distribution via IGMPFinancial data feeds, media streaming
TGW ConnectGRE + BGP attachment for SD-WAN appliancesThird-party SD-WAN integration
Network ManagerGlobal view of TGW topology and routingCentralized network monitoring
Route Table SegmentationMultiple route tables per TGWIsolate prod/dev while sharing services

๐Ÿ”— VPC Peering vs. Transit Gateway

AspectVPC PeeringTransit Gateway
TopologyPoint-to-point (full mesh needed)Hub-and-spoke (centralized)
Transitive routingNOT supportedSupported (via route tables)
Cross-RegionYes (inter-region peering)Yes (TGW peering)
BandwidthNo limit (AWS backbone)50 Gbps per attachment
CostData transfer onlyPer-hour + per-GB (more expensive)
ScaleManageable up to ~10 VPCsScales to 5,000 attachments
Decision: <10 VPCs with simple connectivity? โ†’ VPC Peering (cheaper). >10 VPCs or need routing control? โ†’ Transit Gateway (scalable).

๐Ÿ”’ AWS PrivateLink

NEW (Nov 2025): Cross-Region PrivateLink โ€” Interface VPC endpoints can now connect to services in OTHER Regions. This removes the previous "VPC endpoints are regional-only" limitation. Major architecture simplification for multi-region designs.

๐Ÿ˜๏ธ Shared VPCs (VPC Sharing)

Analogy: Shared VPCs are like an office building where the landlord (owner) manages the building infrastructure (network), but tenants (participants) bring their own furniture (workloads) into assigned floors (subnets).

๐Ÿ—๏ธ Network Architecture Patterns

Centralized Egress

Single NAT Gateway/Firewall VPC. All spoke VPCs route internet traffic through TGW to central egress.

Centralized Ingress

ALB/NLB in shared services VPC. Route to spoke VPCs via TGW or PrivateLink.

Inspection VPC

AWS Network Firewall in dedicated VPC. TGW routes all inter-VPC and egress traffic through it.

Service VPC Pattern

Shared services (AD, DNS, CI/CD) in dedicated VPC. Expose via PrivateLink or TGW routing.

๐Ÿ’ป Demo: PrivateLink Endpoint Service

# Create VPC Endpoint Service (provider side)
aws ec2 create-vpc-endpoint-service-configuration \
  --network-load-balancer-arns arn:aws:elasticloadbalancing:...:net/my-nlb/xxx \
  --acceptance-required

# Create Interface VPC Endpoint (consumer side)
aws ec2 create-vpc-endpoint --vpc-id vpc-consumer \
  --service-name com.amazonaws.vpce.us-east-1.vpce-svc-xxxx \
  --vpc-endpoint-type Interface \
  --subnet-ids subnet-xxxx --security-group-ids sg-xxxx

# Accept endpoint connection (provider side)
aws ec2 accept-vpc-endpoint-connections \
  --service-id vpce-svc-xxxx --vpc-endpoint-ids vpce-xxxx

๐Ÿงช Knowledge Check

Q1: A company has 50 VPCs needing connectivity with network segmentation between prod and dev. Which solution is most appropriate?

A) VPC Peering (full mesh)   B) Transit Gateway with multiple route tables   C) PrivateLink   D) Shared VPCs

B) Transit Gateway with multiple route tables โ€” At 50 VPCs, full-mesh peering is unmanageable (1,225 peering connections). TGW with separate route tables for prod/dev provides scalable, segmented connectivity.

Q2: What change did cross-region PrivateLink (Nov 2025) enable?

A) PrivateLink over the internet   B) Interface endpoints connecting to services in other Regions   C) Gateway endpoints across regions   D) PrivateLink without NLB

B) Interface endpoints connecting to services in other Regions โ€” Previously, VPC endpoints were strictly regional. Cross-region PrivateLink removes this limitation, simplifying multi-region architectures without needing TGW peering just for service access.

๐Ÿ“ Module 5 Summary

TGW Advanced

Peering (cross-region), Multicast, Connect (SD-WAN). Route table segmentation for isolation.

PrivateLink

Private service access via ENIs. No peering needed. NEW: Cross-region support (Nov 2025).

VPC Sharing

RAM shares subnets. Owner manages networking. Participants launch resources. Reduces VPC sprawl.

Patterns

Centralized egress/ingress, inspection VPC, service VPC. Design for your scale and security needs.

Click anywhere to close